package com.dd.dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository
public class MyDao {

    @Value("${name}")
    private String name;
    @Value("${age}")
    private int age;
    @Value("${school}")
    private String school;
    @Value("${address}")
    private String address;

    public void  showMyDao(){
        System.out.println("姓名："+name);
        System.out.println("年龄："+age);
        System.out.println("学校："+school);
        System.out.println("地址："+address);
    }
}
